/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */
package com.huibur.devicecheck.controller;

import com.huibur.devicecheck.model.param.AssignTaskParam;
import com.huibur.devicecheck.request.ObjRes;
import com.huibur.devicecheck.service.IAssignTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*******************************************************
* @title: AssignTaskController.java
* @description:
* @author wushiqi
* @date 2021/9/29
* @version 1.0
*******************************************************/
@RestController
@RequestMapping("/assignTasks")
@Api(value = "分配",tags = {"分配"})
@Slf4j
public class AssignTaskController {

    @Autowired
    IAssignTaskService iAssignTaskService;

    /**
     * 分配管理
     * @param assignTaskParam
     * @return
     */
    @PostMapping("/assignTask")
    @ApiOperation(value = "分配管理",response = ObjRes.class)
    private ObjRes<Void> assignTasks(@RequestBody AssignTaskParam assignTaskParam) {
        return iAssignTaskService.assignTasks(assignTaskParam);
    }
}
